export default class VNode {
  id;
  type;
  props;
  container;
  constructor({ id, type, props, container }) {
    this.id = id;
    this.props = props;
    this.type = type;
    this.container = container;
  }
}

/**
 * 
 *  const element = document.createElement(type);
    element.className = newProps.className || "";
    element.style = newProps.style;
    // ....
    // ....
    if (newProps.onClick) {
      element.addEventListener("click", newProps.onClick);
    }
    return element;
    
 */
